package com.ytjj.qmyx.admin.service.impl;

import com.github.pagehelper.PageHelper;
import com.ytjj.common.api.CommonPage;
import com.ytjj.qmyx.admin.dao.ScoreSignDao;
import com.ytjj.qmyx.admin.model.ScoreSign;
import com.ytjj.qmyx.admin.model.request.ScoreSignRequest;
import com.ytjj.qmyx.admin.service.ScoreSignService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ScoreSignServiceImpl implements ScoreSignService {

    @Resource
    private ScoreSignDao scoreSignDao;

    @Override
    public CommonPage<ScoreSign> selectList(ScoreSignRequest request) {
        PageHelper.startPage(request.getPageNum(), request.getPageSize());
        List<ScoreSign> list = scoreSignDao.selectList(request);
        return CommonPage.restPage(list);
    }

    @Override
    public int updateScoreSign(ScoreSignRequest request) {
        return scoreSignDao.updateScoreSign(request);
    }
}
